/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Shin
 */
public class UserBean {

    private String userName;
    private String dateOfBirth;
    private String email;
    private String phoneNo;
    private String account;
    private String pass;
    private String provinsi;
    private String provinsiid;
    //for validation error messages
    private String userNameError;
    private String dateOfBirthError;
    private String emailError;
    private String phoneNoError;
    private String passError;
    private boolean isValid;
    //this is for action means edit or submit or delete or update
    private String action;
    private String idTabel;
    private String namaTabel;
    private String proVinsi;
    private String kabupaten;
    private String kecamatan;
    private String desa;
    //construtor.it is invoked when we run jsp page.
    //so first time no values will display in jsp page

    public UserBean() {
        userName = "";
        dateOfBirth = "";
        email = "";
        phoneNo = "";
        account = "";
        pass = "";

        userNameError = "";
        dateOfBirthError = "";
        emailError = "";
        phoneNoError = "";
        passError = "";
        provinsi="";
        provinsiid="";


        action = "submit";
    }

    public String getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(String dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getPassword() {
        return pass;
    }

    public void setPassword(String pass) {
        this.pass = pass;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    //setter and getter methods for errors
    public String getUserNameError() {
        return userNameError;
    }

    public void setUserNameError(String userNameError) {
        this.userNameError = userNameError;
    }

    public String getDateOfBirthError() {
        return dateOfBirthError;
    }

    public void setDateOfBirthError(String dateOfBirthError) {
        this.dateOfBirthError = dateOfBirthError;
    }

    public String getEmailError() {
        return emailError;
    }

    public void setEmailError(String emailError) {
        this.emailError = emailError;
    }

    public String getPhoneNoError() {
        return phoneNoError;
    }

    public void setPhoneNoError(String phoneNoError) {
        this.phoneNoError = phoneNoError;
    }

    public boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(boolean isValid) {
        this.isValid = isValid;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    /**
     * @return the account
     */
    public String getAccount() {
        return account;
    }

    /**
     * @param account the account to set
     */
    public void setAccount(String account) {
        this.account = account;
    }

    /**
     * @return the pass
     */
    public String getPass() {
        return pass;
    }
    public String getPassError() {
        return passError;
    }

    /**
     * @param pass the pass to set
     */
    public void setPass(String pass) {
        this.pass = pass;
    }
    public void setPassError(String pass) {
        this.pass = passError;
    }
    public String getProvinsi() {
        return provinsi;
    }
    public void setProvinsi(String propinsi) {
        this.provinsi = propinsi;
    }
    public String getProvinsiid() {
        return provinsiid;
    }
    public void setProvinsiid(String propinsiid) {
        this.provinsiid = propinsiid;
    }
     public String getKabupaten() {
        return kabupaten;
    }
     public void setKabupaten(String kabupaten) {
        this.kabupaten = kabupaten;
    }
     public String getKecamatan() {
        return kecamatan;
    }

    public void setKecamatan(String kecamatan) {
        this.kecamatan = kecamatan;
    }
     public String getDesa() {
        return desa;
    }

    public void setDesa(String desa) {
        this.desa = desa;
    }

    public String getIdTabel() {
        return idTabel;
    }

    public void setIdTabel(String idTabel) {
        this.idTabel = idTabel;
    }

    public String getNamaTabel() {
        return namaTabel;
    }

    public void setNamaTabel(String namaTabel) {
        this.namaTabel = namaTabel;
    }
}
